package serivce;

import org.springframework.stereotype.Service;
import untity.User;

import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;

public interface LoginService {

    public HashMap<String,Object> login(String account, String password);

    public String setLoginSession(HttpServletRequest request,String id,String userName);

    public HashMap<String,Object> checkSession(HttpServletRequest request);

    public String addUser(User user);

    public String queryByAccount(String account);
}
